// JavaScript Document
	    $(document).ready(function() {
			/* zebra stripe the tables (not necessary for scrolling) */
	        var tbl = $("table.tbl1");
	        addZebraStripe(tbl);
	        addMouseOver(tbl);
			
			/* make the table scrollable with a fixed header */
	        $("table.scroll").createScrollableTable({
	            width: '800px',
	            height: '400px'
	        });

	    });

	    function addZebraStripe(table) {
            table.find("tbody tr:odd").addClass("alt");
        }

        function addMouseOver(table) {
            table.find("tbody tr").hover(
                    function() {
                        $(this).addClass("over");
                    },
                    function() {
                        $(this).removeClass("over");
                    }
                );
        }
var popupWindow=null;  
		function child_open(url,w,h) 
		{   
		var left = (screen.width/2)-(w/2);
        var top = (screen.height/2)-(h/2);
		//window.open('nextpage.htm','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
		popupWindow =window.open(url,"_blank","directories=no, status=no, menubar=no, scrollbars=yes, resizable=no,width="+w+", height="+h+",top="+top+",left="+left);  
		}
function closepopup()
   {
			window.close();
   }
		
		function parent_disable() 
		{ 
		if(popupWindow && !popupWindow.closed) popupWindow.focus(); 
		} 
		
		
		function popup_confirm(msg)
		{
			return confirm(msg);
		}
		function openFileOption(file)
		{
		document.getElementById(file).click();
		
		}
		function refreshForm()
		{
			location.reload(true);
		}
		
		
		
		///////////////////////////////////
		var httpObject = null;
		 
		// Get the HTTP Object
		    function getHTTPObjectForBrowser(){
		            if (window.ActiveXObject)
		                return new ActiveXObject("Microsoft.XMLHTTP");
		            else if (window.XMLHttpRequest) return new XMLHttpRequest();
		            else {
		                alert("Browser does not support AJAX...........");
		            return null;
		    }
		   }
		// Change the value of the outputText field
		    function setAjaxOutput(){
		        if(httpObject.readyState == 4){
		            document.getElementById('intValueDiv').innerHTML = httpObject.responseText;
		            alert(httpObject.responseText);
		        }
		    }
		// Implement business logic
		        function doAjaxCall(){
		            httpObject = getHTTPObjectForBrowser();
		            if (httpObject != null) {
		                httpObject.open("GET", "callTestAjax.action?mancc="+document.getElementById('intValueId').value, true);
		               alert(document.getElementById('intValueId').value); 
		            httpObject.send(null);
		            httpObject.onreadystatechange = setAjaxOutput;
		        }
		    }